package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 天气预警
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2024-06-18 15:54:14
 */
@TableName("tianqiyujing")
public class TianqiyujingEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public TianqiyujingEntity() {
		
	}
	
	public TianqiyujingEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
    @TableId(type = IdType.AUTO)
    private Long id;
	/**
	 * 城市
	 */
					
	private String chengshi;
	
	/**
	 * 天气温度
	 */
					
	private Double tianqiwendu;
	
	/**
	 * 预警提醒
	 */
					
	private String yujingtixing;
	
	/**
	 * 图片
	 */
					
	private String tupian;
	
	/**
	 * 提醒类型
	 */
					
	private String tixingleixing;
	
	/**
	 * 日期
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date riqi;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：城市
	 */
	public void setChengshi(String chengshi) {
		this.chengshi = chengshi;
	}
	/**
	 * 获取：城市
	 */
	public String getChengshi() {
		return chengshi;
	}
	/**
	 * 设置：天气温度
	 */
	public void setTianqiwendu(Double tianqiwendu) {
		this.tianqiwendu = tianqiwendu;
	}
	/**
	 * 获取：天气温度
	 */
	public Double getTianqiwendu() {
		return tianqiwendu;
	}
	/**
	 * 设置：预警提醒
	 */
	public void setYujingtixing(String yujingtixing) {
		this.yujingtixing = yujingtixing;
	}
	/**
	 * 获取：预警提醒
	 */
	public String getYujingtixing() {
		return yujingtixing;
	}
	/**
	 * 设置：图片
	 */
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	/**
	 * 获取：图片
	 */
	public String getTupian() {
		return tupian;
	}
	/**
	 * 设置：提醒类型
	 */
	public void setTixingleixing(String tixingleixing) {
		this.tixingleixing = tixingleixing;
	}
	/**
	 * 获取：提醒类型
	 */
	public String getTixingleixing() {
		return tixingleixing;
	}
	/**
	 * 设置：日期
	 */
	public void setRiqi(Date riqi) {
		this.riqi = riqi;
	}
	/**
	 * 获取：日期
	 */
	public Date getRiqi() {
		return riqi;
	}

}
